package com.frogs.ucenter.v1.request;

import javax.servlet.http.HttpServletRequest;

import com.frogs.framework.util.StringUtil;
import com.frogs.framework.web.HttpRequestInfo;
import com.frogs.system.util.ApiUrlParamEnum;
import com.frogs.system.web.api.request.Request;
import com.frogs.system.web.exception.RequestIllegalException;

public class IntegralConsumeRecordRequest extends Request {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3661669081963035679L;
	
	private String orderId;    //订单号
	
	@Override
	public void parse(HttpServletRequest request) {
		HttpRequestInfo requestInfo = new HttpRequestInfo(request);
		this.orderId = requestInfo.getParameter(ApiUrlParamEnum.orderId.getParamName());
		if(StringUtil.isEmpty(orderId)) {
			throw new RequestIllegalException("订单号不能为空");
		}
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
}
